#!/bin/sh
echo ------------------------------------------------------------
echo JSpider startup script
set JSPIDER_HOME=D:/workspace/jk_spider_2.1-light
echo JSPIDER_HOME=%JSPIDER_HOME%
echo ------------------------------------------------------------


set JSPIDER_CLASSPATH=
set JSPIDER_CLASSPATH=%JSPIDER_HOME%/lib/activation.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/commons-beanutils-1.8.0.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/commons-collections-3.2.1.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/commons-dbcp-1.2.2.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/commons-dbutils-1.3.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/commons-logging-1.1.1.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/commons-pool-1.4.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/dom4j-1.6.1.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/hsqldb.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/jxl.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/log4j-1.2.15.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/mail.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/ojdbc14.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/selenium-java-client-driver.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/selenium-server.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%JSPIDER_HOME%/lib/jk_spider.jar
set JSPIDER_CLASSPATH=%JSPIDER_CLASSPATH%;%CLASSPATH%

java -Xms512m -Xmx1024m -cp  %JSPIDER_CLASSPATH%;%classpath% jk.spider.JK_Spider_Run yihaodian yihaodian 1 D:/workspace/jk_spider_2.1-light 

pause